/*
** xsocket.c for zappy in /home/morgan_t/Documents/svn-for-my-proj/zappy/common
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Mon Jul  2 13:21:26 2012 thomas morgant
** Last update Thu Jul  5 12:30:29 2012 thomas morgant
*/

#include "common.h"

int	xsocket(int domain, int type, int protocol)
{
  int	fd;

  fd = socket(domain, type, protocol);
  if (fd == -1)
    {
      perror("socket");
      exit(EXIT_FAILURE);
    }
  return (fd);
}
